import 'package:spring_fairy/api/mood_type_api.dart';
import 'package:spring_fairy/api/user_api.dart';
import 'package:spring_fairy/model/mood_type.dart';
import 'package:spring_fairy/model/user.dart';

void main() async {
  UserAPI userAPI = UserAPI();
  User? user = await userAPI.login('admin', '1234567');
  print(user);

  MoodTypeAPI moodTypeAPI = MoodTypeAPI();
  MoodType moodType = MoodType(
    name: "emo",
    icon: '[emo]',
    color: 'yello',
    description: 'emo'
  );
  MoodType? type = await moodTypeAPI.createMoodType(moodType);
  print(type);

  moodTypeAPI.getAllMoodTypes().then(print);
}